package com.stack.wemedia.controller.v1;

import com.stack.model.common.dtos.ResponseResult;
import com.stack.model.wemedia.dtos.WmMaterialDto;
import com.stack.model.wemedia.dtos.WmNewsDto;
import com.stack.wemedia.service.WmChannelService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author llz
 * @date 2023/10/10 21:20
 * @description
 */
@Api("文章频道")
@RestController
@RequestMapping("/api/v1/channel")
public class WmchannelController {

    @Autowired
    private WmChannelService wmChannelService;

    @GetMapping("/channels")
    public ResponseResult findAll(){
        return wmChannelService.findAll();
    }

}
